﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void BtnOK_Click(object sender, EventArgs e)
    {
　　　//使用Join方法连接一个新的字符串
        if (this.TxtS.Text == "")
        {
            Response.Write("<script language=javascript>alert('对不起！请在用户名称文本框中输入一个用户名！');location='javascript:history.go(-1)'</script>");
        }
        else
        {
            String newString = "";
            String Str1 = "余振";
            String Str2 = "很帅";
            String S = this.TxtS.Text;
            String[] strArrary ={ Str1, Str2 };
            newString = String.Join(S, strArrary);//连起来后就是 余振【输入的值】很帅
            this.TxtXmm.Text= newString.ToString();
        }
    }
}
